FROM java:8
ADD gateway-0.2-SNAPSHOT.jar app.jar
ENV SERVICE_REGISTRY=service-register-center
ENV CONFIG_SERVER=service-config-center
ENV SPRING_PROFILES_ACTIVE=docker

RUN bash -c 'touch /app.jar'
EXPOSE 10000
ENTRYPOINT ["java","-jar","/app.jar"]